
export default url => {
    const crud = window.$crud(url);
	
	

	
	const uploadreportfile = (params) => window.$axios({
	    url: `report/uploadreportfile`,
	    method: 'post',
		data:params
	});
	
	const getreportfile = (id) => window.$axios({
	    url: `report/getreportfile/${id}`,
	    method: 'get'
	});

	
	const getreporturl = (params) => window.$axios({
	    url: `report/getreportfileurl`,
	    method: 'get',
		params
	});
	
	
	const getApi = (id) => window.$axios({
	    url: `data/dataInterface/${id}`,
	    method: 'get'
	});

	
	const request = (url,method,params,headers) => window.$axios({
	    url,
	    method,
	    params,
		data:params,
		headers
	});
	
    return {
        ...crud,
		uploadreportfile,
		getreportfile,
		getreporturl,
		getApi,
		request
    }
}